package com.crm.service.impl;

import com.crm.dao.CustomerLossReprieveDao;
import com.crm.entity.CustomerLossReprieve;
import com.crm.service.CustomerLossReprieveService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 客户流失暂缓措施Service实现类
 * @author Administrator
 *
 */
@Service("customerLossReprieveService")
public class CustomerLossReprieveServiceImpl implements CustomerLossReprieveService {

    @Resource
    private CustomerLossReprieveDao customerLossReprieveDao;

    @Override
    public List<CustomerLossReprieve> find(Map<String, Object> map) {
        return customerLossReprieveDao.find(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return customerLossReprieveDao.getTotal(map);
    }

    @Override
    public int update(CustomerLossReprieve customerLossReprieve) {
        return customerLossReprieveDao.update(customerLossReprieve);
    }

    @Override
    public int add(CustomerLossReprieve customerLossReprieve) {
        return customerLossReprieveDao.add(customerLossReprieve);
    }

    @Override
    public int delete(Integer id) {
        return customerLossReprieveDao.delete(id);
    }
}
